<?php
$psize  = $this_list_psize;
$page   = @(int)$_GET['page'];
$key    = string_pre_process(trim(@$_GET['key']));
if($cid <= 0) {
    $cid    = @(int)$_GET['cid'];
    if($cid <= 0) {
        $cid = $this_cata_id;
    }
}
$param  = array(
    'cid' => $this_cata_id,
    'title_length' => 40,
    );
$side       = class_list($param, 1);
$location   = location($cid);       // 当前位置：从当前文章的

$thisclass  = & class_info($cid);
$classname  = $thisclass['__text__'];
listseo($thisclass);

//  hr----

// smarty变量
$tpl->assign(array('psize'=>$psize,'page'=>$page,'classname'=>$classname));
$tplfile    = $tpl_list;
// 列表页分页信息
$tpl->assign(array(
    // 页面seo信息
    'page_title'    => $page_title,
    'seo_title'     => $seo_title,
    'seo_keywords'  => $seo_keywords,
    'seo_description' => $seo_description,

    'cid'   => $cid,
    'aid'   => $aid,
    'location'  => $location,
    'side'  => $side,
    'thisclass' => $thisclass,

    ));

$tpl->assign(get_defined_vars());
$tpl->display($tplfile);
?>